home *** CD-ROM | disk | FTP | other *** search
- var §\x01§ = 63;
- while(true)
- {
- if(eval("\x01") == 63)
- {
- set("\x01",eval("\x01") + 733);
- §§push(true);
- }
- else if(eval("\x01") == 307)
- {
- set("\x01",eval("\x01") + 635);
- §§push(true);
- }
- else
- {
- if(eval("\x01") == 852)
- {
- set("\x01",eval("\x01") - 545);
- break;
- }
- if(eval("\x01") == 942)
- {
- set("\x01",eval("\x01") - 480);
- if(§§pop())
- {
- set("\x01",eval("\x01") + 391);
- }
- }
- else
- {
- if(eval("\x01") == 253)
- {
- set("\x01",eval("\x01") + 594);
- _root.level = 5;
- _root.primaData = true;
- _root.ufo.swapDepths(999);
- _root.life = 100;
- _root.lifeBar.gotoAndStop(_root.life);
- _root.lifeText = _root.life + "%";
- _root.oiRapite = 0;
- _root.smokeDepth = 500;
- _root.speedX = 0;
- _root.speedY = 0.7;
- _root.accel = 1;
- _root.counterPozitii = 0;
- _root.beamCounter = 0;
- _root.beamOpen = false;
- _root.rotation = false;
- _root.float = false;
- h = 1;
- while(h <= 4)
- {
- _root.attachMovie("rosu" + h,"rosu" + h,_root.getNextHighestDepth());
- _root["rosu" + h]._alpha = 0;
- h++;
- }
- _root.onEnterFrame = function()
- {
- if(ok)
- {
- _root.lifeText = _root.life + "%";
- _root.ufo._x += _root.speedX;
- _root.ufo._y += _root.speedY;
- _root.rotatie = _root.ufo._rotation;
- if(Key.isDown(37))
- {
- _root.rotation = false;
- if(_root.speedX > -3)
- {
- if(_root.counterPozitii == 0)
- {
- _root.ufo.ufo2.ufo3.gotoAndPlay("apasatS");
- }
- _root.counterPozitii = 1;
- _root.speedX -= _root.accel;
- if(!_root.beamOpen && _root.ufo._rotation > -12)
- {
- _root.ufo._rotation -= 1;
- }
- }
- }
- if(Key.isDown(39))
- {
- _root.rotation = false;
- if(_root.speedX < 3)
- {
- if(_root.counterPozitii == 0)
- {
- _root.ufo.ufo2.ufo3.gotoAndPlay("apasatD");
- }
- _root.counterPozitii = 1;
- _root.speedX += _root.accel;
- if(_root.beamOpen == false && _root.ufo._rotation < 12)
- {
- _root.ufo._rotation += 1;
- }
- }
- }
- if(Key.isDown(38))
- {
- if(_root.speedY > -3)
- {
- if(_root.counterPozitii == 0)
- {
- _root.ufo.ufo2.ufo3.gotoAndPlay("apasatSus");
- }
- _root.counterPozitii = 1;
- _root.speedY -= _root.accel;
- }
- }
- if(Key.isDown(40))
- {
- if(_root.speedY < 3)
- {
- if(_root.counterPozitii == 0)
- {
- _root.ufo.ufo2.ufo3.gotoAndPlay("apasatJos");
- }
- _root.counterPozitii = 1;
- _root.speedY += _root.accel;
- }
- }
- if(Key.isDown(32))
- {
- if(_root.ufo._rotation == 0)
- {
- if(_root.beamCounter == 0)
- {
- _root.ufo.raza.gotoAndPlay(2);
- _root.beamCounter = 1;
- }
- }
- }
- if(_root.speedX < 0)
- {
- if(_root.ufo._rotation < 0 && _root.rotation == true)
- {
- _root.ufo._rotation = _root.ufo._rotation + 1;
- }
- _root.speedX += 0.2;
- if(_root.speedX >= 0)
- {
- _root.speedX = 0;
- _root.ufo.ufo2.ufo3.gotoAndStop(1);
- _root.ufo._rotation = 0;
- }
- }
- if(_root.speedX > 0)
- {
- if(_root.ufo._rotation > 0 && _root.rotation == true)
- {
- _root.ufo._rotation--;
- }
- _root.speedX -= 0.2;
- if(_root.speedX <= 0)
- {
- _root.speedX = 0;
- _root.ufo.ufo2.ufo3.gotoAndStop(1);
- _root.ufo._rotation = 0;
- }
- }
- if(_root.speedY < 0)
- {
- _root.speedY += 0.2;
- if(_root.speedY >= 0)
- {
- _root.speedY = 0.7;
- }
- }
- }
- else
- {
- _root.ufo._y -= 5;
- _root.ufo._alpha -= 5;
- }
- };
- if(_root.primaData)
- {
- _root.attachMovie("d" + _root.level,"d" + _root.level,93);
- }
- _root.d1._x = 405;
- _root.d1._y = 257;
- _root["d" + _root.level]._x = 226;
- _root["d" + _root.level]._y = 303;
- _root.starArray = new Array();
- _root.starArray = ["s4","s4","s4","s4"];
- _root.removeArray = new Array();
- _root.removeArray = ["o1","o2","o3","o4","o5","o6","bomb1","bomb2","bomb3","ufo","ufo2","poarta"];
- listener = new Object();
- listener.onKeyUp = function()
- {
- if(Key.getCode() == 37 || Key.getCode() == 38 || Key.getCode() == 39 || Key.getCode() == 40)
- {
- _root.ufo.ufo2.ufo3.play();
- _root.counterPozitii = 0;
- _root.rotation = true;
- }
- if(Key.getCode() == 32)
- {
- _root.ufo.raza.play();
- }
- };
- Key.addListener(listener);
- _root.oiCounter = 30;
- _root.bombCounter = 20;
- _root.smokeCounter = 3500;
- _root.starCounter = 3500;
- _root.oiTarget = 4;
- _root.oiPeScena = 4;
- _root.bombe = 3;
- stop();
- break;
- }
- if(eval("\x01") == 462)
- {
- set("\x01",eval("\x01") + 391);
- §§pop()[§§pop()] = §§pop()[§§pop() - §§pop()] - 10;
- eval(§§constant(0))[§§constant(19)][§§constant(18)]();
- eval(§§constant(0))[§§constant(8)](§§constant(20));
- eval(§§constant(0))[§§constant(10)] = 0;
- eval(§§constant(0))[§§constant(11)] += eval(§§constant(0))[§§constant(10)];
- eval(§§constant(0))[§§constant(9)] = 100;
- if(_root.smokeDepth >= 500)
- {
- removeMovieClip(_root);
- }
- break;
- }
- if(eval("\x01") == 853)
- {
- set("\x01",eval("\x01") - 597);
- §§push(true);
- }
- else if(eval("\x01") == 256)
- {
- set("\x01",eval("\x01") + 146);
- if(§§pop())
- {
- set("\x01",eval("\x01") - 149);
- }
- }
- else
- {
- if(eval("\x01") != 796)
- {
- if(eval("\x01") == 402)
- {
- set("\x01",eval("\x01") - 149);
- stop();
- §§push(§§pop() - §§pop());
- break;
- }
- if(eval("\x01") == 847)
- {
- set("\x01",eval("\x01") - 847);
- }
- break;
- }
- set("\x01",eval("\x01") + 56);
- if(§§pop())
- {
- set("\x01",eval("\x01") - 545);
- }
- }
- }
- }
- }
-